package doantotnghiep.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import doantotnghiep.dao.CabinetDao;
import doantotnghiep.model.Cabinet;

public class CabinetBusiness {
	
	@Autowired
	private CabinetDao cabinetDao;

	public void addCabinet(Cabinet cabinet) {
		cabinetDao.addCabinet(cabinet);
	}

	public void deleteCabinet(int id) {
		cabinetDao.deleteCabinet(id);
		
	}

	public List<Cabinet> listCabinet() {
		return cabinetDao.getListCabinet();
	}

	public Cabinet getCabinetById(int id) {
		return cabinetDao.getCabinetByID(id);
	}

	public void saveCabinet(Cabinet cabinet) {
		cabinetDao.saveCabinet(cabinet);
	}

	public List<Cabinet> listNotFullCabinet() {
		return cabinetDao.listNotFullCabinet();
	}

}
